package com.fastdfs.controller;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class templates {
    // http://49.232.169.1701:20210/image.html

    // http://localhost:20210/image.html
    //显示image.html页面
    @GetMapping(value="/image.html")
    public String index(){
        return "select/image";
    }
    // http://localhost:20210/image_son.html
    //显示 image_son.html页面
    @GetMapping(value="/image_son.html")
    public String image_son(String id, Model model){
        model.addAttribute("id",id);
        return"select/image_son";
    }

    // http://localhost:20210/image_add.html
    //显示image_add.html 页面
    @GetMapping(value="/image_add.html")
    public String image_add(String id,Model model){

        model.addAttribute("id",id);
        return"insert/image_add";
    }
    // http://localhost:20210/image_album_add.html
    //显示 image_album_add.html 页面
    @GetMapping(value="/image_album_add.html")
    public String image_album_add(){
        return"insert/image_album_add";
    }

    // http://localhost:20210/iimage_album_up.html
    //显示 image_album_up.html 页面
    @GetMapping(value="/image_album_up.html")
    public String image_album_up(String id,Model model){
        model.addAttribute("id",id);
        return"update/image_album_up";
    }

}
